 
	$(document).ready(function(){
			//验证部分
		$("#changePassword").validate({
            rules: {
                oldPassword : {
                    required : true
                },
                newPassword : {
                    required : true,
					rangelength:[6,20]
                },
				confirmPassword : {
                    required : true,
					equalTo:"#newPassword"
                }
            },
            messages: {
                oldPassword : {
					required:"原密码必须填写"
                },
                newPassword : {
                    required : "新密码必须填写",
					rangelength:"新密码长度在6-20位之间"
                },
				confirmPassword : {
                    required : "确认密码必须填写",
					equalTo:"确认密码必须与新密码相同"
                }
            }
        });

	});
 